#ifndef XSKELMESH
#define XSKELMESH
#include "XMesh.h"
class XC_ENTRY XSkelMesh : public XMesh
{
protected:
	XVertexBuffer* m_back_vertex;
	vector<XBone*> m_skel;
	vector<XAnimation*> m_animations;
	XVertexBuffer* m_skel_buffer;
	
public:
	XSkelMesh();
	~XSkelMesh();
	bool LoadResource(XModFileStream file_stream);
	void AddAnimation(XModFileStream animation);
	void AddAnimation(XAnimation* animation);
	vector<XBone*> GetSkeleton();
	void Render();
	void PlayNextFrame(int anim_id);
};

#endif